package gjtx3;

import java.util.Scanner;

public class CompanyTset {
    public static void main(String[] args) {
        SetCompany cp = new SetCompany("打工人", "无人区", "144444144", "打工");
        cp.show();
        Scanner in = new Scanner(System.in);
        while (true) {
        System.out.print("1.招聘员工, 2.输出员工信息, 3.辞退员工,4.统计人数,5.薪水最高的员工，9.退出");
            int s = in.nextInt();
            if (s == 1) {
                System.out.print("输入员工姓名：");
                String name = in.next();
                System.out.print("输入员工年龄：");
                int nianL = in.nextInt();
                System.out.print("输入员工性别：");
                String xingB = in.next();
                System.out.print("输入员工职务：");
                String zhiW = in.next();
                System.out.print("输入员工薪水：");
                int xinShui = in.nextInt();
                System.out.print("输入员工工号：");
                String number=in.next();
                cp.recruit(name,nianL,xingB,zhiW,xinShui,number);
            } else if (s == 2) {
                cp.output();
            } else if (s == 3) {
                System.out.print("输入员工工号：");
                String number=in.next();
                cp.delete(number);
            } else if (s == 4) {
                cp.statistics();
            } else if (s == 5) {
                cp.salary();
            } else {
                break;
            }
        }
    }
}
